<template>
  <div>
    <VScaleScreen width="4160" height="1080" v-if="isUseVScaleScreen">
      <div id="index">
        <div class="header-wrap" @click="handleClick"  title="点击关闭屏幕适配">
          <div class="myheader">
            <p class="header-title">
              路信云广西建筑工企综合服务平台大数据展示中心
            </p>
          </div>
        </div>
        <div class="main-wrap">
          <Left></Left>
          <Center></Center>
          <Right></Right>
        </div>
      </div>
    </VScaleScreen>
    <div id="index" v-else>
      <div class="header-wrap" @click="handleClick" title="点击开启屏幕适配">
        <div class="myheader">
          <p class="header-title">
            路信云广西建筑工企综合服务平台大数据展示中心
          </p>
        </div>
      </div>
      <div class="main-wrap">
        <Left></Left>
        <Center></Center>
        <Right></Right>
      </div>
    </div>
  </div>
</template>

<script setup>
import VScaleScreen from "v-scale-screen";
import Left from "./left";
import Center from "./center";
import Right from "./right";
import { ref } from "vue";

const isUseVScaleScreen = ref(true);
const handleClick = () => {
  isUseVScaleScreen.value = !isUseVScaleScreen.value;
};
</script>

<style scoped lang='scss'>
#index {
  width: 4160px;
  height: 1080px;
  background: url("@/assets/longscreen2/background.png");
}
.header-wrap {
  width: 100%;
  height: 104px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;

  .myheader {
    width: 1920px;
    height: 104px;
    background: url("@/assets/longscreen2/header-bg.png");
    background-size: 100% 100%;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    padding-top: 16px;
    box-sizing: border-box;

    .header-title {
      font-size: 32px;
      font-family: PangMenZhengDao-3, PangMenZhengDao;
      font-weight: bold;
      color: #fffde8;
      background: linear-gradient(180deg, #00a9ff 0%, #e8feff 70%);
      height: 52px;
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }
  }
}
.main-wrap {
  width: 100%;
  padding: 0px 40px;
  margin-top: 15px;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
}
</style>